const Koa = require('koa')
const app = new Koa()
const bodyparser = require('koa-bodyparser')

const userRouter = require('./router/user')
const indexRouter = require('./router/index')

app.use(bodyparser())
// 注册使用插件
app.use(userRouter.routes())
app.use(indexRouter.routes())

app.listen(9999, () => {
  console.log(`您访问的地址是: http://localhost:9999`)
})
